package com.butterfly.hotkey.dashboard.biz.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 汇总表
 * </p>
 *
 * @author butterfly
 * @since 2024-11-05
 */
@TableName("hk_summary")
public class Summary implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 指标名称
     */
    private String indexName;

    /**
     * 规则
     */
    private String rule;

    /**
     * app
     */
    private String app;

    /**
     * 指标值1
     */
    private Integer indexVal1;

    /**
     * 指标值2
     */
    private Integer indexVal2;

    /**
     * 指标值3
     */
    private BigDecimal indexVal3;

    /**
     * 天数
     */
    private Integer days;

    /**
     * 小时数
     */
    private Integer hours;

    /**
     * 分钟数
     */
    private Long minutes;

    /**
     * 秒数
     */
    private Long seconds;

    /**
     * 类型
     */
    private Integer bizType;

    /**
     * 防重ID
     */
    private String uuid;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private String creator;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String modifier;


    public Long getId() {
        return id;
    }

    public Summary setId(Long id) {
        this.id = id;
        return this;
    }

    public String getIndexName() {
        return indexName;
    }

    public Summary setIndexName(String indexName) {
        this.indexName = indexName;
        return this;
    }

    public String getRule() {
        return rule;
    }

    public Summary setRule(String rule) {
        this.rule = rule;
        return this;
    }

    public String getApp() {
        return app;
    }

    public Summary setApp(String app) {
        this.app = app;
        return this;
    }

    public Integer getIndexVal1() {
        return indexVal1;
    }

    public Summary setIndexVal1(Integer indexVal1) {
        this.indexVal1 = indexVal1;
        return this;
    }

    public Integer getIndexVal2() {
        return indexVal2;
    }

    public Summary setIndexVal2(Integer indexVal2) {
        this.indexVal2 = indexVal2;
        return this;
    }

    public BigDecimal getIndexVal3() {
        return indexVal3;
    }

    public Summary setIndexVal3(BigDecimal indexVal3) {
        this.indexVal3 = indexVal3;
        return this;
    }

    public Integer getDays() {
        return days;
    }

    public Summary setDays(Integer days) {
        this.days = days;
        return this;
    }

    public Integer getHours() {
        return hours;
    }

    public Summary setHours(Integer hours) {
        this.hours = hours;
        return this;
    }

    public Long getMinutes() {
        return minutes;
    }

    public Summary setMinutes(Long minutes) {
        this.minutes = minutes;
        return this;
    }

    public Long getSeconds() {
        return seconds;
    }

    public Summary setSeconds(Long seconds) {
        this.seconds = seconds;
        return this;
    }

    public Integer getBizType() {
        return bizType;
    }

    public Summary setBizType(Integer bizType) {
        this.bizType = bizType;
        return this;
    }

    public String getUuid() {
        return uuid;
    }

    public Summary setUuid(String uuid) {
        this.uuid = uuid;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public Summary setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getCreator() {
        return creator;
    }

    public Summary setCreator(String creator) {
        this.creator = creator;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public Summary setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public String getModifier() {
        return modifier;
    }

    public Summary setModifier(String modifier) {
        this.modifier = modifier;
        return this;
    }

    @Override
    public String toString() {
        return "Summary{" +
                "id=" + id +
                ", indexName=" + indexName +
                ", rule=" + rule +
                ", app=" + app +
                ", indexVal1=" + indexVal1 +
                ", indexVal2=" + indexVal2 +
                ", indexVal3=" + indexVal3 +
                ", days=" + days +
                ", hours=" + hours +
                ", minutes=" + minutes +
                ", seconds=" + seconds +
                ", bizType=" + bizType +
                ", uuid=" + uuid +
                ", createTime=" + createTime +
                ", creator=" + creator +
                ", updateTime=" + updateTime +
                ", modifier=" + modifier +
                "}";
    }
}
